/*
* StorageContaner.cpp
*
* Copyright(C) 2009, Лущик Павел aka nanoo
*
* This code is lisenced under the GPL version 2. For details see 
* LISENCE.txt
*/

#include"OctLabelStorage.h"
#include"HexLabelStorage.h"
#include<QGroupBox>
#include<QHBoxLayout>
#include<QVBoxLayout>
#include<QSpinBox>
#include<QPushButton>

class StorageContaner: public QGroupBox
{
	Q_OBJECT
	public:
		StorageContaner(const QString &title, QWidget *parent=0);
		int value(void);
	private:
		QVBoxLayout *layout;
		OctLabelStorage *oct_storage;
		HexLabelStorage *hex_storage;
		QSpinBox *dec_storage;
		QPushButton *b_rar,*b_ral, *b_clear;
		QHBoxLayout *b_layout;
	public slots:
		void setValue(int);
		void rar(void);
		void ral(void);
		void undo(void);
		void clear(void);
};
